package com.day21.test3;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;


import java.time.LocalDate;
import java.util.Date;

@Component
public class aop {

    public void before(JoinPoint joinPoint){
        System.out.println("日志信息："+LocalDate.now());
        System.out.println(joinPoint.getSignature());
        Object[] argv=joinPoint.getArgs();
        System.out.println("参数为");
        for (Object o:argv) {
            System.out.println(o);
        }
        System.out.println("----------------------");
    }

}
